package com.teach.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <pre>
 * TODO : 文章实体类
 * 文章
 * ClassName : com.teach.entity.Article
 * Author : J.L.Zhou
 * E-Mail : 12020042@qq.com
 * Tel : 15111047708
 * Date : 2020-10-29 15:12
 * Version : 1.0
 */
@TableName("article")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章编号
     */
    @TableId("ARTICLE_ID")
    private Long articleId;

    /**
     * 文章类别编号
     */
    @TableField("ARTICLE_TYPE_ID")
    private Long articleTypeId;

    /**
     * 文章编码
     */
    @TableField("ARTICLE_CODE")
    private String articleCode;

    /**
     * 文章标题
     */
    @TableField("ARTICLE_TITLE")
    private String articleTitle;

    /**
     * 文章作者
     */
    @TableField("ARTICLE_WORKER")
    private String articleWorker;

    /**
     * 文章内容
     */
    @TableField("ARTICLE_CONTENT")
    private String articleContent;

    /**
     * 文章状态
     */
    @TableField("ARTICLE_STATUS")
    private Integer articleStatus;

    /**
     * 文章图片
     */
    @TableField("ARTICLE_IMGS")
    private String articleImgs;

    /**
     * 文章附件
     */
    @TableField("ARTICLE_FILES")
    private String articleFiles;

    /**
     * 文章标签
     */
    @TableField("ARTICLE_TAGS")
    private String articleTags;

    /**
     * 文章发布时间
     */
    @TableField("ARTICLE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.util.Date articleTime;


    /**
     * - 无参构造方法
     */
    public Article(){}

    /**
     * - 全参构造方法
     */
    public Article(Long articleId, Long articleTypeId, String articleCode, String articleTitle, String articleWorker, String articleContent, Integer articleStatus, String articleImgs, String articleFiles, String articleTags, java.util.Date articleTime){
        this.articleId = articleId;
        this.articleTypeId = articleTypeId;
        this.articleCode = articleCode;
        this.articleTitle = articleTitle;
        this.articleWorker = articleWorker;
        this.articleContent = articleContent;
        this.articleStatus = articleStatus;
        this.articleImgs = articleImgs;
        this.articleFiles = articleFiles;
        this.articleTags = articleTags;
        this.articleTime = articleTime;
    }

    /**
     * - 主键构造方法
     */
    public Article(Long articleId){
        this.articleId = articleId;
    }


    /**
     * 获取文章编号
     */
    public Long getArticleId(){
        return articleId;
    }

    /**
     * 设置文章编号
     */
    public Article setArticleId(Long articleId){
        this.articleId = articleId;
        return this;
    }

    /**
     * 获取文章类别编号
     */
    public Long getArticleTypeId(){
        return articleTypeId;
    }

    /**
     * 设置文章类别编号
     */
    public Article setArticleTypeId(Long articleTypeId){
        this.articleTypeId = articleTypeId;
        return this;
    }

    /**
     * 获取文章编码
     */
    public String getArticleCode(){
        return articleCode;
    }

    /**
     * 设置文章编码
     */
    public Article setArticleCode(String articleCode){
        this.articleCode = articleCode;
        return this;
    }

    /**
     * 获取文章标题
     */
    public String getArticleTitle(){
        return articleTitle;
    }

    /**
     * 设置文章标题
     */
    public Article setArticleTitle(String articleTitle){
        this.articleTitle = articleTitle;
        return this;
    }

    /**
     * 获取文章作者
     */
    public String getArticleWorker(){
        return articleWorker;
    }

    /**
     * 设置文章作者
     */
    public Article setArticleWorker(String articleWorker){
        this.articleWorker = articleWorker;
        return this;
    }

    /**
     * 获取文章内容
     */
    public String getArticleContent(){
        return articleContent;
    }

    /**
     * 设置文章内容
     */
    public Article setArticleContent(String articleContent){
        this.articleContent = articleContent;
        return this;
    }

    /**
     * 获取文章状态
     */
    public Integer getArticleStatus(){
        return articleStatus;
    }

    /**
     * 设置文章状态
     */
    public Article setArticleStatus(Integer articleStatus){
        this.articleStatus = articleStatus;
        return this;
    }

    /**
     * 获取文章图片
     */
    public String getArticleImgs(){
        return articleImgs;
    }

    /**
     * 设置文章图片
     */
    public Article setArticleImgs(String articleImgs){
        this.articleImgs = articleImgs;
        return this;
    }

    /**
     * 获取文章附件
     */
    public String getArticleFiles(){
        return articleFiles;
    }

    /**
     * 设置文章附件
     */
    public Article setArticleFiles(String articleFiles){
        this.articleFiles = articleFiles;
        return this;
    }

    /**
     * 获取文章标签
     */
    public String getArticleTags(){
        return articleTags;
    }

    /**
     * 设置文章标签
     */
    public Article setArticleTags(String articleTags){
        this.articleTags = articleTags;
        return this;
    }

    /**
     * 获取文章发布时间
     */
    public java.util.Date getArticleTime(){
        return articleTime;
    }

    /**
     * 设置文章发布时间
     */
    public Article setArticleTime(java.util.Date articleTime){
        this.articleTime = articleTime;
        return this;
    }


	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Article [articleId=");
		builder.append(articleId);
		builder.append(", articleTypeId=");
		builder.append(articleTypeId);
		builder.append(", articleCode=");
		builder.append(articleCode);
		builder.append(", articleTitle=");
		builder.append(articleTitle);
		builder.append(", articleWorker=");
		builder.append(articleWorker);
		builder.append(", articleContent=");
		builder.append(articleContent);
		builder.append(", articleStatus=");
		builder.append(articleStatus);
		builder.append(", articleImgs=");
		builder.append(articleImgs);
		builder.append(", articleFiles=");
		builder.append(articleFiles);
		builder.append(", articleTags=");
		builder.append(articleTags);
		builder.append(", articleTime=");
		builder.append(articleTime);
		builder.append("]");
		return builder.toString();
	}
}
